#include <benchmark/benchmark.h>
#include "sys/utsname.h"
#include "util.h"

using namespace std;

static void Bm_function_Uname(benchmark::State &state)
{
    for (auto _ : state)
    {
	    struct utsname buffer;
        benchmark::DoNotOptimize(uname(&buffer));
    }
    state.SetItemsProcessed(state.iterations());
}

MUSL_BENCHMARK(Bm_function_Uname);